package com.hc.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
*@ClassName:{NAME}
*@Author:鹿建文
*
*@Date:2022/5/10
*@Describe:
*/
/**
    * 省份表
    */
@Getter
@Setter
@ToString
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Province {
    /**
    * 编号
    */
    private Integer id;

    /**
    * 省名
    */
    @NotBlank(message = "省名不能为空")
    private String name;

    /**
    * 所属地区
    */
    @NotBlank(message = "大区不能为空")
    private String area;

    /**
    * 显示优先级
    */
    @Range(min =0,max=255,message = "优先级不能为空，且值需要在[0,255]")
    private Integer  priority;

    /**
    * 状态：1正常 0 删除
    */
    private Byte status;
}